package ebuy.com.cotroller;

import ebuy.com.pojo.Titleofproductcategory;
import ebuy.com.server.Easybus_shangpingserver;
import ebuy.com.util.RespBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@RestController
public class Easybus_shangpingcotroller {

    @Autowired
    private Easybus_shangpingserver easybus_shangpingserver;
    @GetMapping("/shangpping")
    public RespBean GetShanngpping(){
        List<Titleofproductcategory> catalogofproductcategories = easybus_shangpingserver.Catalogofproductcategories();
        return RespBean.success("查询成功",catalogofproductcategories);
    }

}
